#ifndef ALBUM_H
#define ALBUM_H
#include <QMap>
#include <QWidget>
#include<QLabel>
namespace Ui {
class Album;
}

class Album : public QWidget
{
    Q_OBJECT

public:
    explicit Album(QWidget *parent = nullptr);
    ~Album();
    void AddImage(QString path);
    void RemoveImage(QString path);
    void ClearImage();
    void SetImage(QVector<QString> vec);
    void Save();
protected:
    void showEvent(QShowEvent *event);
private:
    QVector<QString> img;
    void Init();
    Ui::Album *ui;
    QLabel* label = nullptr;
    int curImageIndex = 0;
    void ChangeImage(int offset);
};

#endif // ALBUM_H
